/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package service.impl;

import dao.TheLoaiDAO;
import java.util.List;
import pojo.TheLoai;
import service.TheLoaiService;

/**
 *
 * @author pvhuy
 */
public class TheLoaiServiceImpl implements TheLoaiService{
    private TheLoaiDAO theLoaiDAO;

    @Override
    public void saveTheLoai(TheLoai theLoai) {
        theLoaiDAO.saveTheLoai(theLoai);
    }

    @Override
    public List<TheLoai> listTheLoai() {
        return theLoaiDAO.listTheLoai();
    }

    @Override
    public List<TheLoai> listTheLoaiByMaNhom(int nhomID) {
        return theLoaiDAO.listTheLoaiByMaNhom(nhomID);
    }

    /**
     * @return the theLoaiDAO
     */
    public TheLoaiDAO getTheLoaiDAO() {
        return theLoaiDAO;
    }

    /**
     * @param theLoaiDAO the theLoaiDAO to set
     */
    public void setTheLoaiDAO(TheLoaiDAO theLoaiDAO) {
        this.theLoaiDAO = theLoaiDAO;
    }

}
